package org.dromara.tearoom.domain.bo;

import org.dromara.tearoom.domain.TerTransactions;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;

import java.time.LocalDateTime;

/**
 * 钱包充值交易流水业务对象 ter_transactions
 *
 * @author xch
 * @date 2025-05-08
 */
@Data
@AutoMapper(target = TerTransactions.class, reverseConvertGenerate = false)
public class TerTransactionsBo  {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 充值金额
     */
    private Integer amount;

    /**
     * 原余额
     */
    private Integer balanceBefore;

    /**
     * 充值后余额
     */
    private Integer balanceAfter;

    /**
     * 账户id
     */
    private Long accountId;
    private String remark;
    private LocalDateTime createTime;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private Integer giftBefore;
    private Integer giftAfter;
    private String orderId;
}
